package com.atguigu.product.service;

import com.atguigu.product.entity.CategoryEntity;
import com.atguigu.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author mrs
 * @email 2314028487@qq.com
 * @date 2022-10-11 21:08:34
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);


    /*
     *找到catelogId的完整路径
     */
    Long[] findCatelogPath(Long catelogId);


    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Catagories();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

